import Sm4js from 'sm4js';

let sm4Config = {
  key: 'A6EA174632926674',
  mode: 'ecb',
  // iv: 'A6EA174632926674',
  cipherType: 'base64'
}

// var plaintext = '{"records":[["31","129501868966","1","80.00","6","激进型","20191226","20211225","1","自然人客户风险承受能力问卷","01235","1","3.0","20200623","","-1"]],"columns":["SURVEY_SN","USER_CODE","USER_ROLE","SURVEY_SCORE","RATING_LVL","RATING_LVL_NAME","RATING_DATE","EXP_DATE","SURVEY_CLS","SURVEY_NAME","SURVEY_SYN","ORDINAL","VERSION","NEXT_RATING_DATE","REMARK","SURVEY_USABLE_NUM"]}'
// var ciphertext = sm4.encrypt(plaintext); // 加密
// var plaintext1 = sm4.decrypt(ciphertext); // 解密
export default new Sm4js(sm4Config);


